Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for COMMENT property #593

Closed

Conversation

miaulalala
Copy link

RFC5546 allows for COMMENT properties on all iTIP methods. This PR attempts to extend the current implementation to suppot COMMENTs on REQUEST, REPLY and CANCEL methods currently implemented in the Broker.

Signed-off-by: Anna Larch anna@nextcloud.com

Signed-off-by: Anna Larch <anna@nextcloud.com>
@@ -340,6 +343,9 @@ protected function processMessageReply(Message $itipMessage, ?VCalendar $existin
$requestStatus = $vevent->{'REQUEST-STATUS'}->getValue();
list($requestStatus) = explode(';', $requestStatus);
}
if(!empty($vevent->{'COMMENT'})) {
$comments = $vevent->{'COMMENT'};
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

get the value? or use clone?

@codecov
Copy link

codecov bot commented Sep 24, 2022

Codecov Report

Merging #593 (23d36a9) into master (7c585e6) will decrease coverage by 0.25%.
The diff coverage is 42.10%.

@@             Coverage Diff              @@
##             master     #593      +/-   ##
============================================
- Coverage     98.53%   98.27%   -0.26%     
- Complexity     1865     1876      +11     
============================================
  Files            71       71              
  Lines          4159     4178      +19     
============================================
+ Hits           4098     4106       +8     
- Misses           61       72      +11     
Impacted Files Coverage Δ
lib/ITip/Broker.php 96.82% <42.10%> (-2.67%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@miaulalala
Copy link
Author

Closing this as we're going to go a different route with comments

@miaulalala miaulalala closed this Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant